package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Sleave;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 * 学生请假表 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-02
 */
public interface SleaveMapper extends BaseMapper<Sleave> {

    List<Sleave> getSleaveBySlId(@Param("id") Integer id);

    IPage<Sleave> getStuleaveByPage(Page<Sleave> page, @Param("sleave") Sleave sleave,
                                    @Param("beginDateScope") String[] beginDateScope,@Param("type") int type, @Param("collegeName") String collegeName, @Param("collegeid") int collegeid,@Param("classname") String classname, @Param("classid") int classid);

    List<Sleave> getSleave(Integer id);
}
